package com.example.mybatisplusdemo.model.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 用户充值表
 * </p>
 *
 * @author lqj
 * @since 2025-07-01
 */
@TableName("recharge")
@ApiModel(value="Recharge对象", description="用户充值表")
public class Recharge implements Serializable {

    private static final long serialVersionUID = 1L;

        @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

        @ApiModelProperty(value = "用户表主键")
    @TableField("user_id")
    private Long userId;

        @ApiModelProperty(value = "充值金额")
    @TableField("amount")
    private BigDecimal amount;

        @ApiModelProperty(value = "0=待处理，1=已通过，2=已拒绝")
    @TableField("status")
    private Byte status;

        @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

        @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

        public Long getId() {
        return id;
        }

            public Recharge setId(Long id) {
        this.id = id;
            return this;
        }
        public Long getUserId() {
        return userId;
        }

            public Recharge setUserId(Long userId) {
        this.userId = userId;
            return this;
        }
        public BigDecimal getAmount() {
        return amount;
        }

            public Recharge setAmount(BigDecimal amount) {
        this.amount = amount;
            return this;
        }
        public Byte getStatus() {
        return status;
        }

            public Recharge setStatus(Byte status) {
        this.status = status;
            return this;
        }
        public LocalDateTime getCreateTime() {
        return createTime;
        }

            public Recharge setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
            return this;
        }
        public LocalDateTime getUpdateTime() {
        return updateTime;
        }

            public Recharge setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
            return this;
        }

    @Override
    public String toString() {
    return "Recharge{" +
            "id=" + id +
            ", userId=" + userId +
            ", amount=" + amount +
            ", status=" + status +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
    "}";
    }
}
